package demo.model;

import java.util.ArrayList;

public class AddressBook {
	ArrayList<Contact> contacts;
	
	public AddressBook() {
		contacts = new ArrayList<Contact>();
	}
	
	public void addContact(Contact newContact) {
		contacts.add(newContact);
	}

	public Contact[] getContacts() {
		Contact[] ctcs = new Contact[contacts.size()];
		return contacts.toArray(ctcs);
	}
}
